<?php

/**
 * Curse form.
 *
 * @package    academia_de_escritores
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CurseForm extends BaseCurseForm
{
  public function configure()
  {
  	unset($this["created_at"],$this["updated_at"],$this["slug"]);
        
          $this->widgetSchema['texto_1'] = new sfWidgetFormTextareaTinyMCE();
          $this->widgetSchema['texto_2'] = new sfWidgetFormTextareaTinyMCE();
          $this->widgetSchema['texto_3'] = new sfWidgetFormTextareaTinyMCE();
          foreach(array('texto_1','texto_2','texto_3') as $val){
            $this->getWidgetSchema()->setLabel($val,CurseTable::$DinamicFieldsDescription[$val]["descr"]);
             $this->getWidgetSchema()->setHelp($val,CurseTable::$DinamicFieldsDescription[$val]["help"]);
          }
          $this->getWidgetSchema()->setFormFormatterName("list");
          
  }
}
